package com.qf.bean;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 2020/2/2
 * 键盘敲烂，月薪过万
 * 登高必自卑，行远必自迩。
 * 不忘初心：像初学者一样拥有一颗谦虚、开放的心态。
 * 李学峰
 */
public class Employee {
    private Integer id;
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date createdate;
    private String employeenum;
    private String loginname;
    private String loginpassword;
    private String username;
    private Integer roleid;
    private Integer deptid;
    private String idcaid;
    private String telphone;
    private String email;
    private String address;
    private Integer state;

    private Dept dept;
    private Role role;

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", createdate=" + createdate +
                ", employeenum='" + employeenum + '\'' +
                ", loginname='" + loginname + '\'' +
                ", loginpassword='" + loginpassword + '\'' +
                ", username='" + username + '\'' +
                ", roleid=" + roleid +
                ", deptid=" + deptid +
                ", idcaid='" + idcaid + '\'' +
                ", telphone='" + telphone + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", state=" + state +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getEmployeenum() {
        return employeenum;
    }

    public void setEmployeenum(String employeenum) {
        this.employeenum = employeenum;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getLoginpassword() {
        return loginpassword;
    }

    public void setLoginpassword(String loginpassword) {
        this.loginpassword = loginpassword;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getIdcaid() {
        return idcaid;
    }

    public void setIdcaid(String idcaid) {
        this.idcaid = idcaid;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Employee() {
    }

    public Employee(Integer id, Date createdate, String employeenum, String loginname, String loginpassword, String username, Integer roleid, Integer deptid, String idcaid, String telphone, String email, String address, Integer state) {
        this.id = id;
        this.createdate = createdate;
        this.employeenum = employeenum;
        this.loginname = loginname;
        this.loginpassword = loginpassword;
        this.username = username;
        this.roleid = roleid;
        this.deptid = deptid;
        this.idcaid = idcaid;
        this.telphone = telphone;
        this.email = email;
        this.address = address;
        this.state = state;
    }
}
